<?php
	$this->title = "Grupos / Minist&eacute;rios";
?>

<div class="panel panel-default">
    <div class="panel-heading">
        <a href="<?php echo $this->url(array('controller' => 'grupo', 'action' => 'add')); ?>">                                        
            <img src= "<?php echo $this->baseUrl() . '/images/novo.jpg' ?>"
                title="Novo Registro"
                alt="Novo Registro"
            />
        </a>
        Grupos Cadastrados
    </div>
    <!-- /.panel-heading -->
    <div class="panel-body">
        <div class="table-responsive">
            <table class="table table-striped table-bordered table-hover" id="table-data">
                <thead>
                    <tr>
                        <th>Situa&ccedil;&atilde;o</th>
                        <th>&nbsp;</th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach ($this->grupo as $grupo) : ?>
                        <tr>
                            <td>
                                <?php echo $this->escape($grupo->grupo); ?>
                            </td>
                            <td>
                                <a href="<?php echo $this->url(array('controller'=>'grupo','action'=>'edit', 'id'=>$grupo->idgrupo));?>">
                                        <img src= "<?php echo $this->baseUrl() . '/images/Atualizar.png' ?>"
                                             title="Editar"
                                             alt="Editar"
                                         />
                                </a>
                                &nbsp;
                                <a href="<?php echo $this->url(array('controller'=>'grupo','action'=>'delete', 'id'=>$grupo->idgrupo));?>">
                                    <img src= "<?php echo $this->baseUrl() . '/images/Excluir.png' ?>"
                                             title="Excluir"
                                             alt="Excluir"     
                                    />
                                </a>
                            </td>
                        </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>
        </div>
    </div>